package com.zzyl.mapper;

import com.zzyl.entity.Bed;
import com.zzyl.vo.BedVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.boot.autoconfigure.web.ServerProperties;

import java.util.List;

@Mapper
public interface BedMapper {

    List<BedVo> getBedsByRoomId(Long roomId);
    //新增床位
    void insert(Bed bed);

//更新床位
    void updateBed(Bed bed);
//根据ID查询
    @Select( "select * from bed where id = #{id}")
    Bed getBedById(Long id);
//根据Id删除信息
    void getBedBy(Long id);
}

